package com.device.repository;

import com.device.entity.Device;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;

public interface DeviceRepository extends JpaRepository<Device,Integer> {
    Device findByDeviceName(String name);
    Page<Device> findAll(Pageable pageable);
    Page<Device> findByDeviceNameContaining(String deviceName, Pageable pageable);




}
